<script>
   var User = localStorage.getItem('cloud');
   if(!User){
       var url = 'http://221.178.246.51:85/cloud/#/login';
       //跳转到用户首页
       localStorage.setItem('cloud-url',JSON.stringify(url));
       //保存跳转后的域名，以便验证code
       var url2 = encodeURIComponent(url);
       window.location.href = 'http://221.178.246.51:8090/oauth-server/oauth/authorize?client_id=lcsoft&response_type=code&redirect_uri='+ url2;
       //window.location.href = 'http://221.178.246.51:9101/oauth/authorize?client_id=lcsoft&response_type=code&redirect_uri=http://221.178.246.51:85/cloud/#/login';
       //window.onload=function(){
       //document.getElementById("autopage").click();
       //}
   }
</script>

<!--TODO 盐城
<div class="main">
    <div class="header">
        <div class="container">
            <div class="pull-left logo">
                <a ui-sref="CloudPlatform.home">
                    <img ng-src="{{imgApi+'logo/logo-common.png'}}" onerror="javascript:this.src='src/imgs/logo.png';"/>
                </a>
            </div>
            <ul class="nav pull-right">
                <li ui-sref-active="active">
                    <a ui-sref="CloudPlatform.home">首页</a>
                </li>
                <li ui-sref-active="active"><a ui-sref="CloudPlatform.App.Home">应用中心</a></li>
                <li><a ui-sref="DeveloperIndex.Home" target="_blank">开发者平台</a></li>
                <!--<li><a href ng-click="Login('Tenant')">平台管理员登录</a></li>-->
				
				<!--
                <li style="margin-left:50px;">
                    <button ui-sref="CloudPlatform.TenantRegister" class="btn btn-primary">注册</button>
                </li>
                <li>
                    <button class="btn btn-primary" ng-click="Login()" id="autopage">登录</button>
                </li>
                <!--<li>-->
                    <!--<button ui-sref="CloudPlatform.RoleChoices" class="btn btn-success">注册</button>-->
                <!--</li>-->
				
				<!--
            </ul>
        </div>
    </div>
    <div ui-view></div>
    <div class="footer" ng-hide="isShowFooter">
        <div class="text-center">
            <a ui-sref="SchoolManager"></a>
            <a href=""></a>
            <a href=""></a>
            <a href=""></a>
            <a href=""></a>
        </div>
        <div class=text-center>
            © 2017 南京师范大学盐城实验学校版权所有
        </div>
    </div>
</div>
-->